#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#define N 6000
int main()
{
	int frequency[7] = { 0 };
	double probability;
	srand((unsigned int)time(NULL));
	for (int i = 1; i <= N; i++)
	{
		int point = 1 + rand() % 6;
		frequency[point]++;
	}
	printf("%s %s %s\n", "point", "frequency", "probability");
	for (int point = 1; point <= 6; point++)
	{
		probability = (double)frequency[point] / N;
		printf("%d %d %lf\n", point, frequency[point], probability);
	}
	return 0;
}